package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Content implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField("content_id")
    @TableId(type = IdType.AUTO)
    private Long contentId;

    @TableField("user_id")
    @ApiModelProperty(value = "发布分享的用户")
    private Long userId;

    @TableField("title")
    @ApiModelProperty(value = "分享的标题")
    private String title;

    @TableField("image_url")
    @ApiModelProperty(value = "分享中的图片")
    private String imageUrl;

    @TableField("created_at")
    @ApiModelProperty(value = "发布分享的时间")
    private LocalDateTime createdAt;
}
